﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using TDT_Project.classes;

namespace TDT_Project
{
    public partial class View_Nhan_Xet : System.Web.UI.Page
    {
        cls_phuhuynhxemdiem cls = new cls_phuhuynhxemdiem();
        private DataSet ds = new DataSet();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                try
                {
                    //string nienkhoa = Request.QueryString["nk"].ToString();
                    //string giaovien = Request.QueryString["giaovien"].ToString();
                    string nienkhoa = "NH6";
                    string giaovien = "GV2";
                    ds = cls.Get_Thong_Tin_Hoc_Nhan_Xet(nienkhoa, giaovien);
                    gvResult_TTT.DataSource = ds.Tables[0].DefaultView;
                    gvResult_TTT.DataBind();
                }
                catch (Exception ex)
                {
                    throw ex;
                }
            }
        }

        protected void gvResult_TTT_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
        {
            if (e.CommandName.Equals("lnkhs_ID"))
            {
                Session["HocSinh_ID"] = e.CommandArgument.ToString();
                ScriptManager.RegisterStartupScript(Page, typeof(Page), "OpenWindow", "window.open('/View_Nhan_Xet_Chi_Tiet.aspx');", true);
            }
        }
    }
}